<template>
  <div class="col-lg-12 control-section">
    <ejs-listview
      id="groupedList"
      :dataSource="data"
      :fields="fields"
      :cssClass="cssClass"
      :groupTemplate="grouptemplate"
      :showHeader="header"
      :headerTitle="title"
      :template="datatemplate"
    ></ejs-listview>
    <div id="action-description">
      <p>
        This sample demonstrates the Group Templates functionalities of ListView. Click any list item
        from the settings option to select and highlight an option.
      </p>
    </div>
    <div id="description">
      <p>
        ListView component has an option to custom design the group header title with the help of
        <code>groupTemplate</code> property.
      </p>
      <p>
        In this example, both the group header and list item is customized using the
        <code>groupTemplate</code> and
        <code>template</code> property.
      </p>
    </div>
  </div>
</template>
<style>
/* ListView position alignment */

#groupedList.e-listview {
  display: block;
  max-width: 350px;
  margin: auto;
  border: 1px solid;
  line-height: initial;
  border-color: rgba(0, 0, 0, 0.12);
}

/* ListView header alignment */

#groupedList.e-listview .e-headertext:after {
  font-family: "e-icons";
  position: absolute;
  content: "\e712";
  right: 16px;
}

#groupedList.e-listview .e-list-header {
  color: white;
  height: 57px;
  background-color: #56697f;
  padding-left: 15px;
  position: sticky;
  top: -1px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

#groupedList.e-listview .e-list-header .e-text {
  font-family: sans-serif;
  font-size: 18px;
  line-height: 26px;
}

.bootstrap4 #groupedList.e-listview .e-active .icon {
  color: #fff;
}

/* ListView template customization */

@font-face {
  font-family: "e-icons";
  src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAAKAIAAAwAgT1MvMj1tSgQAAAEoAAAAVmNtYXC1bLXaAAABtAAAAFxnbHlmlflhUAAAAiwAABQUaGVhZA8uqKkAAADQAAAANmhoZWEIUQQOAAAArAAAACRobXR4NAAAAAAAAYAAAAA0bG9jYR/WJdwAAAIQAAAAHG1heHABIQH3AAABCAAAACBuYW1lz2x4zAAAFkAAAAIxcG9zdBdlF/AAABh0AAAAuwABAAAEAAAAAFwEAAAAAAAD9AABAAAAAAAAAAAAAA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AsADMAAQAAAAAACwASAF8AAwABBAkAAAACAHEAAwABBAkAAQAQAHMAAwABBAkAAgAOAIMAAwABBAkAAwAQAJEAAwABBAkABAAQAKEAAwABBAkABQAWALEAAwABBAkABgAQAMcAAwABBAkACgBYANcAAwABBAkACwAkAS8gbGlzdHZpZXdSZWd1bGFybGlzdHZpZXdsaXN0dmlld1ZlcnNpb24gMS4wbGlzdHZpZXdGb250IGdlbmVyYXRlZCB1c2luZyBTeW5jZnVzaW9uIE1ldHJvIFN0dWRpb3d3dy5zeW5jZnVzaW9uLmNvbQAgAGwAaQBzAHQAdgBpAGUAdwBSAGUAZwB1AGwAYQByAGwAaQBzAHQAdgBpAGUAdwBsAGkAcwB0AHYAaQBlAHcAVgBlAHIAcwBpAG8AbgAgADEALgAwAGwAaQBzAHQAdgBpAGUAdwBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIAB1AHMAaQBuAGcAIABTAHkAbgBjAGYAdQBzAGkAbwBuACAATQBlAHQAcgBvACAAUwB0AHUAZABpAG8AdwB3AHcALgBzAHkAbgBjAGYAdQBzAGkAbwBuAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANAQIBAwEEAQUBBgEHAQgBCQEKAQsBDAENAQ4AB3dpZmktd2YLYWxhcm0tY2xvY2sJYmx1ZXRvb3RoCnNwZWFrZXItd2YKd2VhdGhlci0wMg1zaWduYWwtYmFycy0xBHVzZXIMbG9jYXRpb24tLTA1BGxvY2sIZ2xvYmUtd2YNYmF0dGVyeS0wMy13ZgtzZWFyY2gtZmluZAAAAA==);
  font-weight: normal;
  font-style: normal;
}

#groupedList.e-listview .e-list-item {
  cursor: pointer;
}

#groupedList.e-listview .e-content {
  height: 450px;
  overflow-y: scroll;
}

#groupedList.e-listview .e-list-group-item {
  color: #837c7c;
  padding: 0;
  height: inherit;
}

#groupedList.e-listview .icon {
  background: transparent;
  font-family: "e-icons";
  color: #ff4081;
}

#groupedList.e-listview .wifi:before {
  content: "\e700";
  font-size: 25px;
}

#groupedList.e-listview .bluetooth:before {
  content: "\e702";
  font-size: 25px;
}

#groupedList.e-listview .sim:before {
  content: "\e705";
  font-size: 25px;
}

#groupedList.e-listview .display:before {
  content: "\e704";
  font-size: 25px;
}

#groupedList.e-listview .sound:before {
  content: "\e703";
  font-size: 25px;
}

#groupedList.e-listview .battery:before {
  content: "\e711";
  font-size: 25px;
}

#groupedList.e-listview .user:before {
  content: "\e707";
  font-size: 25px;
}

#groupedList.e-listview .location:before {
  content: "\e708";
  font-size: 25px;
}

#groupedList.e-listview .security:before {
  content: "\e709";
  font-size: 25px;
}

#groupedList.e-listview .language:before {
  content: "\e710";
  font-size: 25px;
}

#groupedList.e-listview .e-hover {
  transition: 0.5s;
}

/* ListView theme customization */

.bootstrap #groupedList.e-listview .e-list-header .e-text {
  line-height: 18px;
}

.highcontrast #groupedList.e-listview .e-list-header .e-text {
  line-height: 26px;
}

.highcontrast #groupedList.e-listview .e-list-header {
  color: #ffd939;
  background-color: #333333;
}

.fabric #groupedList.e-listview .icon {
  color: #0078d7;
}

.bootstrap #groupedList.e-listview .icon {
  color: #1073b1;
}

.highcontrast #groupedList.e-listview .icon {
  color: #fff;
}

.highcontrast #groupedList.e-listview .e-active .icon {
  color: black;
}

.material #groupedList.e-list-template .e-active .e-list-item-header,
.material #groupedList.e-list-template .e-active .e-list-content {
  color: #ff4081;
}

.fabric #groupedList.e-list-template .e-active .e-list-item-header,
.fabric #groupedList.e-list-template .e-active .e-list-content {
  color: black;
}

.bootstrap #groupedList.e-list-template .e-active .e-list-item-header,
.bootstrap #groupedList.e-list-template .e-active .e-list-content {
  color: #1073b1;
}

.highcontrast #groupedList.e-list-template .e-active .e-list-item-header,
.highcontrast #groupedList.e-list-template .e-active .e-list-content {
  color: #000;
}
</style>
<script>
import Vue from "vue";
import { ListViewPlugin } from "@syncfusion/ej2-vue-lists";
import { enableRipple } from "@syncfusion/ej2-base";
import { dataSource } from "./newsData";
import { groupTemplateData } from "./listData";
import grouptempVue from "./group-vue-template.vue";
import datatempVue from "./data-vue-template.vue";
enableRipple(false);
Vue.use(ListViewPlugin);
export default Vue.extend({
  data: function() {
    return {
      cssClass: "e-list-template",
      data: groupTemplateData,
      fields: {
        text: "Name",
        groupBy: "order"
      },
      header: true,
      title: "Settings",
      grouptemplate: function() {
        return {
          template: grouptempVue
        };
      },
      datatemplate: function() {
        return {
          template: datatempVue
        };
      }
    };
  }
});
</script>
